<?php
/**
 * 测试类
 */
namespace App\Http\Controllers\Admin;

use App\Http\Controllers\AdminController;
use Illuminate\Http\Request;
use App\Models\Theme;
use Illuminate\Support\Facades\Redis;

class TestController extends AdminController {

    /**
     * 测试页面
     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
     */
    public function index() {
        return view("theme::test.index");
    }

    /**
     * 设置redis
     */
    public function setRedis() {
        Redis::set("username", "hello ken 666666");
        echo "设置成功，内容为hello ken 666666";
    }

    /**
     * 获取redis
     */
    public function getRedis() {
        $username = Redis::get("username");
        var_dump($username);
    }
}
